package com.googlecode.lucene.appengine;

import com.googlecode.objectify.ObjectifyFactory;

class GaeObjectifyFactory {

	private GaeObjectifyFactory() {
		/* Singleton */
	}

	private static class ObjectifyFactoryHolder {
		public static final ObjectifyFactory instance;
		static {
			instance = new ObjectifyFactory();
			
			instance.register(com.googlecode.lucene.appengine.GaeLock.class);
			instance.register(com.googlecode.lucene.appengine.LuceneIndex.class);
			instance.register(com.googlecode.lucene.appengine.Segment.class);
			instance.register(com.googlecode.lucene.appengine.SegmentHunk.class);
		}
	}

	public static ObjectifyFactory getInstance() {
		return ObjectifyFactoryHolder.instance;
	}

}
